package com.shiyanlou.upms.system.service.impl;

import com.shiyanlou.upms.system.dao.UpmsSystemMapper;
import com.shiyanlou.upms.system.domain.UpmsSystem;
import com.shiyanlou.upms.system.service.UpmsSystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("upmsSystemService")
public class UpmsSystemServiceImpl implements UpmsSystemService {

    @Autowired
    private UpmsSystemMapper upmsSystemMapper;

    @Override
    public int deleteByPrimaryKey(Long systemId) {
        return upmsSystemMapper.deleteByPrimaryKey(systemId);
    }

    @Override
    public int insert(UpmsSystem record) {
        return upmsSystemMapper.insert(record);
    }

    @Override
    public int insertSelective(UpmsSystem record) {
        return upmsSystemMapper.insertSelective(record);
    }

    @Override
    public UpmsSystem selectByPrimaryKey(Long systemId) {
        return upmsSystemMapper.selectByPrimaryKey(systemId);
    }

    @Override
    public int updateByPrimaryKeySelective(UpmsSystem record) {
        return upmsSystemMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UpmsSystem record) {
        return upmsSystemMapper.updateByPrimaryKey(record);
    }

    @Override
    public int count(Map<String, Object> map) {
        return upmsSystemMapper.count(map);
    }

    @Override
    public List<UpmsSystem> list(Map<String, Object> map) {
        return upmsSystemMapper.list(map);
    }

    @Override
    public int batchRemove(Integer[] userIds) {
        return upmsSystemMapper.batchRemove(userIds);
    }
}
